package com.yyc.factory;

import com.yyc.service.UserService;
import com.yyc.service.impl.UserServiceImpl;

/**
 * 定义静态工厂，创建UserService对象
 * 方法被static修饰
 */
public class StaticServiceFactory {
    public static UserService createBean() {
        return new UserServiceImpl();
    }
}
